home *** CD-ROM | disk | FTP | other *** search
/ Nebula 2 / Nebula Two.iso / NextAnswers / 1167_finding_new_executables.rtf < prev    next >
Text File  |  1995-06-12  |  1KB  |  24 lines

  1. {\rtf0\ansi{\fonttbl\f0\fnil Times-Roman;\f1\fmodern Courier;\f2\fmodern Ohlfs;}
  2. \paperw13040
  3. \paperh10200
  4. \margl120
  5. \margr120
  6. {\colortbl;\red0\green0\blue0;\red84\green84\blue84;\red83\green83\blue83;\red82\green82\blue82;}
  7. \pard\tx960\tx1920\tx2880\tx3840\tx4800\tx5760\tx6720\tx7680\tx8640\tx9600\f0\b0\i0\ulnone\fs28\fc1\cf1 Q:  I added a new executable to /usr/local/bin.  Until I logout and log back in, I'm unable to access the new executable by name from the command line.  Why?  How can I fix this?\
  8. \
  9. A: Assuming /usr/local/bin is in your PATH environment variable, run the C-Shell command\
  10. \
  11.  
  12. \f1\fs24     myhost> rehash\
  13.  
  14. \f0\fs28 \
  15. As the csh(1) man page indicates, this causes the internal hash table of the contents of the directories in the path variable to be recomputed.  This is needed if new commands are added to directories in the path while you are logged in.  This should only be necessary if you add commands to one of your own directories, or if a systems programmer changes the contents of one of the system directories.\
  16. \
  17. Note that there's no analog to rehash in the Bourne shell, nor is one needed.\
  18. \
  19. QA531\
  20. \
  21. Valid for 1.0, 2.0, 3.0, 3.1\
  22. \
  23.  
  24.